package com.panasonic.cn.cmsc;

import java.io.*;
import java.lang.*;
import java.util.*;
import java.math.*;
import java.sql.SQLException;
import com.fujitsu.fks.jaaf.core.*;

public class SQLMM0103{
	private Hashtable paramsString     = new Hashtable();
	private Hashtable paramsBigDecimal = new Hashtable();
	private Hashtable paramsFree       = new Hashtable();
	private String lastSql_ = null;

	private String getString(String name){
		if(name==null) return "";
		String returnStr = (String)paramsString.get(name);
		if(returnStr==null) return "";
		return "'"+FrameworkCommon.stringReplaceSQuote(returnStr)+"'";
	}

	private String getBigDecimal(String name){
		if(name==null) return "";
		BigDecimal returnStr = (BigDecimal)paramsBigDecimal.get(name);
		if(returnStr==null) return "";
		return returnStr.toString();
	}

	private String getFree(String name){
		if(name==null) return "";
		String returnStr = (String)paramsFree.get(name);
		if(returnStr==null) return "";
		return returnStr;
	}

	public String getLastSql(){
		return lastSql_;
	}

	public int UPDATE_M0101(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" APL_BDT "+((getString("NEW_APL_BDT").equals(""))?" is null ":"=")+getString("NEW_APL_BDT")+",");
		sql.append(" APL_EDT "+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+",");
		sql.append(" GNR_ADM_NO "+((getString("GNR_ADM_NO").equals(""))?" is null ":"=")+getString("GNR_ADM_NO")+",");
		sql.append(" TMP_AC_TYP "+((getString("TMP_AC_TYP").equals(""))?" is null ":"=")+getString("TMP_AC_TYP")+",");
		sql.append(" TRPT_CLSS_D_TYP "+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+",");
		sql.append(" CTY_CD "+((getString("CTY_CD").equals(""))?" is null ":"=")+getString("CTY_CD")+",");
		sql.append(" CN_PST_CD "+((getString("CN_PST_CD").equals(""))?" is null ":"=")+getString("CN_PST_CD")+",");
		sql.append(" TRPT_ADR_CN "+((getString("TRPT_ADR_CN").equals(""))?" is null ":"=")+getString("TRPT_ADR_CN")+",");
		sql.append(" TRPT_NM_CN "+((getString("TRPT_NM_CN").equals(""))?" is null ":"=")+getString("TRPT_NM_CN")+",");
		sql.append(" TRPT_AB_CN "+((getString("TRPT_AB_CN").equals(""))?" is null ":"=")+getString("TRPT_AB_CN")+",");
		sql.append(" TEL_NO "+((getString("TEL_NO").equals(""))?" is null ":"=")+getString("TEL_NO")+",");
		sql.append(" FAX_NO "+((getString("FAX_NO").equals(""))?" is null ":"=")+getString("FAX_NO")+",");
		sql.append(" CUS_CLSS_CD "+((getString("CUS_CLSS_CD").equals(""))?" is null ":"=")+getString("CUS_CLSS_CD")+",");
		sql.append(" CUS_CLSS_DTL_CD "+((getString("CUS_CLSS_DTL_CD").equals(""))?" is null ":"=")+getString("CUS_CLSS_DTL_CD")+",");
		sql.append(" SLS_CHRG_CD "+((getString("SLS_CHRG_CD").equals(""))?" is null ":"=")+getString("SLS_CHRG_CD")+",");
		sql.append(" SLS_CHNL_CD "+((getString("SLS_CHNL_CD").equals(""))?" is null ":"=")+getString("SLS_CHNL_CD")+",");
		sql.append(" SLS_SLS_DEPT "+((getString("SLS_SLS_DEPT").equals(""))?" is null ":"=")+getString("SLS_SLS_DEPT")+",");
		sql.append(" BRNC_CD "+((getString("BRNC_CD").equals(""))?" is null ":"=")+getString("BRNC_CD")+",");
		sql.append(" SUB_BRNC_CD "+((getString("SUB_BRNC_CD").equals(""))?" is null ":"=")+getString("SUB_BRNC_CD")+",");
		sql.append(" SUB_SECT_CD "+((getString("SUB_SECT_CD").equals(""))?" is null ":"=")+getString("SUB_SECT_CD")+",");
		sql.append(" SLS_CHNL_RGN_CD "+((getString("SLS_CHNL_RGN_CD").equals(""))?" is null ":"=")+getString("SLS_CHNL_RGN_CD")+",");
		sql.append(" STATE_CD "+((getString("STATE_CD").equals(""))?" is null ":"=")+getString("STATE_CD")+",");
		sql.append(" AREA_CD "+((getString("AREA_CD").equals(""))?" is null ":"=")+getString("AREA_CD")+",");
		sql.append(" GRP_CD1 "+((getString("GRP_CD1").equals(""))?" is null ":"=")+getString("GRP_CD1")+",");
		sql.append(" GRP_CD2 "+((getString("GRP_CD2").equals(""))?" is null ":"=")+getString("GRP_CD2")+",");
		sql.append(" GRP_CD3 "+((getString("GRP_CD3").equals(""))?" is null ":"=")+getString("GRP_CD3")+",");
		sql.append(" GRP_CD4 "+((getString("GRP_CD4").equals(""))?" is null ":"=")+getString("GRP_CD4")+",");
		sql.append(" CST_CALLING "+((getString("CST_CALLING").equals(""))?" is null ":"=")+getString("CST_CALLING")+",");
		sql.append(" SLS_DEST "+((getString("SLS_DEST").equals(""))?" is null ":"=")+getString("SLS_DEST")+",");
		sql.append(" CORP_CD "+((getString("CORP_CD").equals(""))?" is null ":"=")+getString("CORP_CD")+",");
		sql.append(" CDR_CD "+((getString("CDR_CD").equals(""))?" is null ":"=")+getString("CDR_CD")+",");
		sql.append(" OLD_CUS_CD1 "+((getString("OLD_CUS_CD1").equals(""))?" is null ":"=")+getString("OLD_CUS_CD1")+",");
		sql.append(" OLD_CUS_CD2 "+((getString("OLD_CUS_CD2").equals(""))?" is null ":"=")+getString("OLD_CUS_CD2")+",");
		sql.append(" OLD_CUS_CD3 "+((getString("OLD_CUS_CD3").equals(""))?" is null ":"=")+getString("OLD_CUS_CD3")+",");
		sql.append(" TRD_STP_FLG "+((getString("TRD_STP_FLG").equals(""))?" is null ":"=")+getString("TRD_STP_FLG")+",");
		sql.append(" RECPT_TYP "+((getString("RECPT_TYP").equals(""))?" is null ":"=")+getString("RECPT_TYP")+",");
		sql.append(" STR_ORG_CD "+((getString("STR_ORG_CD").equals(""))?" is null ":"=")+getString("STR_ORG_CD")+",");
		sql.append(" BU_AREA_CD "+((getString("BU_AREA_CD").equals(""))?" is null ":"=")+getString("BU_AREA_CD")+",");
		sql.append(" CORP_CD_SLS "+((getString("CORP_CD_SLS").equals(""))?" is null ":"=")+getString("CORP_CD_SLS")+",");
		sql.append(" PRIZ_RT_CD "+((getString("PRIZ_RT_CD").equals(""))?" is null ":"=")+getString("PRIZ_RT_CD")+",");
		sql.append(" RMK "+((getString("RMK").equals(""))?" is null ":"=")+getString("RMK")+",");
		sql.append(" PMIT_CLNT_CD "+((getString("PMIT_CLNT_CD").equals(""))?" is null ":"=")+getString("PMIT_CLNT_CD")+",");
		sql.append(" DFLT_SHP_DSTN_CD "+((getString("DFLT_SHP_DSTN_CD").equals(""))?" is null ":"=")+getString("DFLT_SHP_DSTN_CD")+",");
		sql.append(" DSP_ITM_CLNT_TYP "+((getString("DSP_ITM_CLNT_TYP").equals(""))?" is null ":"=")+getString("DSP_ITM_CLNT_TYP")+",");
		sql.append(" CNSMT_ITM_CLNT_TYP "+((getString("CNSMT_ITM_CLNT_TYP").equals(""))?" is null ":"=")+getString("CNSMT_ITM_CLNT_TYP")+",");
		sql.append(" FRNT_WHRS_CD "+((getString("FRNT_WHRS_CD").equals(""))?" is null ":"=")+getString("FRNT_WHRS_CD")+",");
		sql.append(" BIL_DSTN_CD "+((getString("BIL_DSTN_CD").equals(""))?" is null ":"=")+getString("BIL_DSTN_CD")+",");
		sql.append(" CUS_PYMT_PRID"+((getString("CUS_PYMT_PRID").equals(""))?" is null ":"=")+getString("CUS_PYMT_PRID")+",");
		sql.append(" CUS_BNK_CD "+((getString("CUS_BNK_CD").equals(""))?" is null ":"=")+getString("CUS_BNK_CD")+",");
		sql.append(" CUS_BNK_ACC "+((getString("CUS_BNK_ACC").equals(""))?" is null ":"=")+getString("CUS_BNK_ACC")+",");
		sql.append(" CUS_CRDT_LMT_AMT "+((getBigDecimal("CUS_CRDT_LMT_AMT").equals(""))?" is null ":"=")+getBigDecimal("CUS_CRDT_LMT_AMT")+",");
		sql.append(" CUS_ADD_PRIZ_TAX_CD "+((getString("CUS_ADD_PRIZ_TAX_CD").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_TAX_CD")+",");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP "+((getString("CUS_ADD_PRIZ_CAL_TYP").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_CAL_TYP")+",");
		sql.append(" CUS_ADD_PRIZ_RGS_NO "+((getString("CUS_ADD_PRIZ_RGS_NO").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_RGS_NO")+",");
		sql.append(" CUS_MLT_CRCY "+((getString("CUS_MLT_CRCY").equals(""))?" is null ":"=")+getString("CUS_MLT_CRCY")+",");
		sql.append(" CUS_CRCY_CD "+((getString("CUS_CRCY_CD").equals(""))?" is null ":"=")+getString("CUS_CRCY_CD")+",");
		sql.append(" CUS_AR_AC"+((getString("CUS_AR_AC").equals(""))?" is null ":"=")+getString("CUS_AR_AC")+",");
		sql.append(" CUS_PRFT_AC"+((getString("CUS_PRFT_AC").equals(""))?" is null ":"=")+getString("CUS_PRFT_AC")+",");
		sql.append(" CUS_TAX_AC"+((getString("CUS_TAX_AC").equals(""))?" is null ":"=")+getString("CUS_TAX_AC")+",");
		sql.append(" SUP_DEBT_AC"+((getString("SUP_DEBT_AC").equals(""))?" is null ":"=")+getString("SUP_DEBT_AC")+",");
		sql.append(" SUP_PRPY_AC"+((getString("SUP_PRPY_AC").equals(""))?" is null ":"=")+getString("SUP_PRPY_AC")+",");
		sql.append(" SUP_PRPYFT_AC"+((getString("SUP_PRPYFT_AC").equals(""))?" is null ":"=")+getString("SUP_PRPYFT_AC")+",");
		sql.append(" SUP_PYMT_PRID "+((getString("SUP_PYMT_PRID").equals(""))?" is null ":"=")+getString("SUP_PYMT_PRID")+",");
		sql.append(" OVS_SUP_TYP "+((getString("OVS_SUP_TYP").equals(""))?" is null ":"=")+getString("OVS_SUP_TYP")+",");
		sql.append(" MAIN_STR_TYP "+((getString("MAIN_STR_TYP").equals(""))?" is null ":"=")+getString("MAIN_STR_TYP")+",");
		sql.append(" CONS_AC_TYP "+((getString("CONS_AC_TYP").equals(""))?" is null ":"=")+getString("CONS_AC_TYP")+",");
		sql.append(" DFLT_RCV_DSTN_CD "+((getString("DFLT_RCV_DSTN_CD").equals(""))?" is null ":"=")+getString("DFLT_RCV_DSTN_CD")+",");
		sql.append(" SITE_NM "+((getString("SITE_NM").equals(""))?" is null ":"=")+getString("SITE_NM")+",");
		sql.append(" SUP_ADD_PRIZ_TAX_CD "+((getString("SUP_ADD_PRIZ_TAX_CD").equals(""))?" is null ":"=")+getString("SUP_ADD_PRIZ_TAX_CD")+",");
		sql.append(" CUS_PRC_TAB_CD "+((getString("CUS_PRC_TAB_CD").equals(""))?" is null ":"=")+getString("CUS_PRC_TAB_CD")+",");
		sql.append(" RGS_DTTM = TO_DATE("+getString("RGS_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" RGS_CHRG_CD"+((getString("RGS_CHRG_CD").equals(""))?" is null ":"=")+getString("RGS_CHRG_CD")+",");
		sql.append(" RGS_PGID "+((getString("RGS_PGID").equals(""))?" is null ":"=")+getString("RGS_PGID")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD"+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int UPDATE_M0102(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" APL_EDT "+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+",");
		sql.append(" TMP_AC_TYP "+((getString("TMP_AC_TYP").equals(""))?" is null ":"=")+getString("TMP_AC_TYP")+",");
		sql.append(" TRPT_CLSS_D_TYP "+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+",");
		sql.append(" CTY_CD "+((getString("CTY_CD").equals(""))?" is null ":"=")+getString("CTY_CD")+",");
		sql.append(" CN_PST_CD "+((getString("CN_PST_CD").equals(""))?" is null ":"=")+getString("CN_PST_CD")+",");
		sql.append(" TRPT_ADR_CN "+((getString("TRPT_ADR_CN").equals(""))?" is null ":"=")+getString("TRPT_ADR_CN")+",");
		sql.append(" TRPT_NM_CN "+((getString("TRPT_NM_CN").equals(""))?" is null ":"=")+getString("TRPT_NM_CN")+",");
		sql.append(" TRPT_AB_CN "+((getString("TRPT_AB_CN").equals(""))?" is null ":"=")+getString("TRPT_AB_CN")+",");
		sql.append(" TEL_NO "+((getString("TEL_NO").equals(""))?" is null ":"=")+getString("TEL_NO")+",");
		sql.append(" FAX_NO "+((getString("FAX_NO").equals(""))?" is null ":"=")+getString("FAX_NO")+",");
		sql.append(" CUS_CLSS_CD "+((getString("CUS_CLSS_CD").equals(""))?" is null ":"=")+getString("CUS_CLSS_CD")+",");
		sql.append(" CUS_CLSS_DTL_CD "+((getString("CUS_CLSS_DTL_CD").equals(""))?" is null ":"=")+getString("CUS_CLSS_DTL_CD")+",");
		sql.append(" SLS_CHRG_CD "+((getString("SLS_CHRG_CD").equals(""))?" is null ":"=")+getString("SLS_CHRG_CD")+",");
		sql.append(" SLS_CHNL_CD "+((getString("SLS_CHNL_CD").equals(""))?" is null ":"=")+getString("SLS_CHNL_CD")+",");
		sql.append(" SLS_SLS_DEPT "+((getString("SLS_SLS_DEPT").equals(""))?" is null ":"=")+getString("SLS_SLS_DEPT")+",");
		sql.append(" BRNC_CD "+((getString("BRNC_CD").equals(""))?" is null ":"=")+getString("BRNC_CD")+",");
		sql.append(" SUB_BRNC_CD "+((getString("SUB_BRNC_CD").equals(""))?" is null ":"=")+getString("SUB_BRNC_CD")+",");
		sql.append(" SUB_SECT_CD "+((getString("SUB_SECT_CD").equals(""))?" is null ":"=")+getString("SUB_SECT_CD")+",");
		sql.append(" SLS_CHNL_RGN_CD "+((getString("SLS_CHNL_RGN_CD").equals(""))?" is null ":"=")+getString("SLS_CHNL_RGN_CD")+",");
		sql.append(" STATE_CD "+((getString("STATE_CD").equals(""))?" is null ":"=")+getString("STATE_CD")+",");
		sql.append(" AREA_CD "+((getString("AREA_CD").equals(""))?" is null ":"=")+getString("AREA_CD")+",");
		sql.append(" GRP_CD1 "+((getString("GRP_CD1").equals(""))?" is null ":"=")+getString("GRP_CD1")+",");
		sql.append(" GRP_CD2 "+((getString("GRP_CD2").equals(""))?" is null ":"=")+getString("GRP_CD2")+",");
		sql.append(" GRP_CD3 "+((getString("GRP_CD3").equals(""))?" is null ":"=")+getString("GRP_CD3")+",");
		sql.append(" GRP_CD4 "+((getString("GRP_CD4").equals(""))?" is null ":"=")+getString("GRP_CD4")+",");
		sql.append(" CST_CALLING "+((getString("CST_CALLING").equals(""))?" is null ":"=")+getString("CST_CALLING")+",");
		sql.append(" SLS_DEST "+((getString("SLS_DEST").equals(""))?" is null ":"=")+getString("SLS_DEST")+",");
		sql.append(" CORP_CD "+((getString("CORP_CD").equals(""))?" is null ":"=")+getString("CORP_CD")+",");
		sql.append(" CDR_CD "+((getString("CDR_CD").equals(""))?" is null ":"=")+getString("CDR_CD")+",");
		sql.append(" OLD_CUS_CD1 "+((getString("OLD_CUS_CD1").equals(""))?" is null ":"=")+getString("OLD_CUS_CD1")+",");
		sql.append(" OLD_CUS_CD2 "+((getString("OLD_CUS_CD2").equals(""))?" is null ":"=")+getString("OLD_CUS_CD2")+",");
		sql.append(" OLD_CUS_CD3 "+((getString("OLD_CUS_CD3").equals(""))?" is null ":"=")+getString("OLD_CUS_CD3")+",");
		sql.append(" TRD_STP_FLG "+((getString("TRD_STP_FLG").equals(""))?" is null ":"=")+getString("TRD_STP_FLG")+",");
		sql.append(" RECPT_TYP "+((getString("RECPT_TYP").equals(""))?" is null ":"=")+getString("RECPT_TYP")+",");
		sql.append(" STR_ORG_CD "+((getString("STR_ORG_CD").equals(""))?" is null ":"=")+getString("STR_ORG_CD")+",");
		sql.append(" BU_AREA_CD "+((getString("BU_AREA_CD").equals(""))?" is null ":"=")+getString("BU_AREA_CD")+",");
		sql.append(" CORP_CD_SLS "+((getString("CORP_CD_SLS").equals(""))?" is null ":"=")+getString("CORP_CD_SLS")+",");
		sql.append(" PRIZ_RT_CD "+((getString("PRIZ_RT_CD").equals(""))?" is null ":"=")+getString("PRIZ_RT_CD")+",");
		sql.append(" RMK "+((getString("RMK").equals(""))?" is null ":"=")+getString("RMK")+",");
		sql.append(" PMIT_CLNT_CD "+((getString("PMIT_CLNT_CD").equals(""))?" is null ":"=")+getString("PMIT_CLNT_CD")+",");
		sql.append(" DFLT_SHP_DSTN_CD "+((getString("DFLT_SHP_DSTN_CD").equals(""))?" is null ":"=")+getString("DFLT_SHP_DSTN_CD")+",");
		sql.append(" DSP_ITM_CLNT_TYP "+((getString("DSP_ITM_CLNT_TYP").equals(""))?" is null ":"=")+getString("DSP_ITM_CLNT_TYP")+",");
		sql.append(" CNSMT_ITM_CLNT_TYP "+((getString("CNSMT_ITM_CLNT_TYP").equals(""))?" is null ":"=")+getString("CNSMT_ITM_CLNT_TYP")+",");
		sql.append(" FRNT_WHRS_CD "+((getString("FRNT_WHRS_CD").equals(""))?" is null ":"=")+getString("FRNT_WHRS_CD")+",");
		sql.append(" BIL_DSTN_CD "+((getString("BIL_DSTN_CD").equals(""))?" is null ":"=")+getString("BIL_DSTN_CD")+",");
		sql.append(" CUS_PYMT_PRID"+((getString("CUS_PYMT_PRID").equals(""))?" is null ":"=")+getString("CUS_PYMT_PRID")+",");
		sql.append(" CUS_BNK_CD "+((getString("CUS_BNK_CD").equals(""))?" is null ":"=")+getString("CUS_BNK_CD")+",");
		sql.append(" CUS_BNK_ACC "+((getString("CUS_BNK_ACC").equals(""))?" is null ":"=")+getString("CUS_BNK_ACC")+",");
		sql.append(" CUS_CRDT_LMT_AMT "+((getBigDecimal("CUS_CRDT_LMT_AMT").equals(""))?" is null ":"=")+getBigDecimal("CUS_CRDT_LMT_AMT")+",");
		sql.append(" CUS_ADD_PRIZ_TAX_CD "+((getString("CUS_ADD_PRIZ_TAX_CD").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_TAX_CD")+",");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP "+((getString("CUS_ADD_PRIZ_CAL_TYP").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_CAL_TYP")+",");
		sql.append(" CUS_ADD_PRIZ_RGS_NO "+((getString("CUS_ADD_PRIZ_RGS_NO").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_RGS_NO")+",");
		sql.append(" CUS_MLT_CRCY "+((getString("CUS_MLT_CRCY").equals(""))?" is null ":"=")+getString("CUS_MLT_CRCY")+",");
		sql.append(" CUS_CRCY_CD "+((getString("CUS_CRCY_CD").equals(""))?" is null ":"=")+getString("CUS_CRCY_CD")+",");
		sql.append(" CUS_AR_AC"+((getString("CUS_AR_AC").equals(""))?" is null ":"=")+getString("CUS_AR_AC")+",");
		sql.append(" CUS_PRFT_AC"+((getString("CUS_PRFT_AC").equals(""))?" is null ":"=")+getString("CUS_PRFT_AC")+",");
		sql.append(" CUS_TAX_AC"+((getString("CUS_TAX_AC").equals(""))?" is null ":"=")+getString("CUS_TAX_AC")+",");
		sql.append(" SUP_DEBT_AC"+((getString("SUP_DEBT_AC").equals(""))?" is null ":"=")+getString("SUP_DEBT_AC")+",");
		sql.append(" SUP_PRPY_AC"+((getString("SUP_PRPY_AC").equals(""))?" is null ":"=")+getString("SUP_PRPY_AC")+",");
		sql.append(" SUP_PRPYFT_AC"+((getString("SUP_PRPYFT_AC").equals(""))?" is null ":"=")+getString("SUP_PRPYFT_AC")+",");
		sql.append(" SUP_PYMT_PRID "+((getString("SUP_PYMT_PRID").equals(""))?" is null ":"=")+getString("SUP_PYMT_PRID")+",");
		sql.append(" OVS_SUP_TYP "+((getString("OVS_SUP_TYP").equals(""))?" is null ":"=")+getString("OVS_SUP_TYP")+",");
		sql.append(" MAIN_STR_TYP "+((getString("MAIN_STR_TYP").equals(""))?" is null ":"=")+getString("MAIN_STR_TYP")+",");
		sql.append(" CONS_AC_TYP "+((getString("CONS_AC_TYP").equals(""))?" is null ":"=")+getString("CONS_AC_TYP")+",");
		sql.append(" DFLT_RCV_DSTN_CD "+((getString("DFLT_RCV_DSTN_CD").equals(""))?" is null ":"=")+getString("DFLT_RCV_DSTN_CD")+",");
		sql.append(" SITE_NM "+((getString("SITE_NM").equals(""))?" is null ":"=")+getString("SITE_NM")+",");
		sql.append(" SUP_ADD_PRIZ_TAX_CD "+((getString("SUP_ADD_PRIZ_TAX_CD").equals(""))?" is null ":"=")+getString("SUP_ADD_PRIZ_TAX_CD")+",");
		sql.append(" CUS_PRC_TAB_CD "+((getString("CUS_PRC_TAB_CD").equals(""))?" is null ":"=")+getString("CUS_PRC_TAB_CD")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD"+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("OLD_APL_BDT").equals(""))?" is null ":"=")+getString("OLD_APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int UPDATE_M0103(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" APL_EDT "+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD"+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("OLD_APL_BDT").equals(""))?" is null ":"=")+getString("OLD_APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int UPDATE_M0104(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" GNR_ADM_NO "+((getString("GNR_ADM_NO").equals(""))?" is null ":"=")+getString("GNR_ADM_NO")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD "+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT = (");
		sql.append(" SELECT");
		sql.append(" MAX(APL_BDT) AS APL_BDT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_EDT < "+getString("SYSDATE")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("NOT_FM_TYP")+")");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int UPDATE_M0105(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" GNR_ADM_NO "+((getString("GNR_ADM_NO").equals(""))?" is null ":"=")+getString("GNR_ADM_NO")+",");
		sql.append(" APL_EDT "+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD"+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("OLD_APL_BDT").equals(""))?" is null ":"=")+getString("OLD_APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int UPDATE_M0106(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" APL_EDT "+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD"+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("SYSDATE").equals(""))?" is null ":"=")+getString("SYSDATE")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("SYSDATE").equals(""))?" is null ":"=")+getString("SYSDATE")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("CASTOFF_FM_TYP")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int UPDATE_M0107(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" UPDATE M01");
		sql.append(" SET");
		sql.append(" APL_BDT "+((getString("NEW_APL_BDT").equals(""))?" is null ":"=")+getString("NEW_APL_BDT")+",");
		sql.append(" APL_EDT "+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+",");
		sql.append(" TMP_AC_TYP "+((getString("TMP_AC_TYP").equals(""))?" is null ":"=")+getString("TMP_AC_TYP")+",");
		sql.append(" TRPT_CLSS_D_TYP "+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+",");
		sql.append(" CTY_CD "+((getString("CTY_CD").equals(""))?" is null ":"=")+getString("CTY_CD")+",");
		sql.append(" CN_PST_CD "+((getString("CN_PST_CD").equals(""))?" is null ":"=")+getString("CN_PST_CD")+",");
		sql.append(" TRPT_ADR_CN "+((getString("TRPT_ADR_CN").equals(""))?" is null ":"=")+getString("TRPT_ADR_CN")+",");
		sql.append(" TRPT_NM_CN "+((getString("TRPT_NM_CN").equals(""))?" is null ":"=")+getString("TRPT_NM_CN")+",");
		sql.append(" TRPT_AB_CN "+((getString("TRPT_AB_CN").equals(""))?" is null ":"=")+getString("TRPT_AB_CN")+",");
		sql.append(" TEL_NO "+((getString("TEL_NO").equals(""))?" is null ":"=")+getString("TEL_NO")+",");
		sql.append(" FAX_NO "+((getString("FAX_NO").equals(""))?" is null ":"=")+getString("FAX_NO")+",");
		sql.append(" CUS_CLSS_CD "+((getString("CUS_CLSS_CD").equals(""))?" is null ":"=")+getString("CUS_CLSS_CD")+",");
		sql.append(" CUS_CLSS_DTL_CD "+((getString("CUS_CLSS_DTL_CD").equals(""))?" is null ":"=")+getString("CUS_CLSS_DTL_CD")+",");
		sql.append(" SLS_CHRG_CD "+((getString("SLS_CHRG_CD").equals(""))?" is null ":"=")+getString("SLS_CHRG_CD")+",");
		sql.append(" SLS_CHNL_CD "+((getString("SLS_CHNL_CD").equals(""))?" is null ":"=")+getString("SLS_CHNL_CD")+",");
		sql.append(" SLS_SLS_DEPT "+((getString("SLS_SLS_DEPT").equals(""))?" is null ":"=")+getString("SLS_SLS_DEPT")+",");
		sql.append(" BRNC_CD "+((getString("BRNC_CD").equals(""))?" is null ":"=")+getString("BRNC_CD")+",");
		sql.append(" SUB_BRNC_CD "+((getString("SUB_BRNC_CD").equals(""))?" is null ":"=")+getString("SUB_BRNC_CD")+",");
		sql.append(" SUB_SECT_CD "+((getString("SUB_SECT_CD").equals(""))?" is null ":"=")+getString("SUB_SECT_CD")+",");
		sql.append(" SLS_CHNL_RGN_CD "+((getString("SLS_CHNL_RGN_CD").equals(""))?" is null ":"=")+getString("SLS_CHNL_RGN_CD")+",");
		sql.append(" STATE_CD "+((getString("STATE_CD").equals(""))?" is null ":"=")+getString("STATE_CD")+",");
		sql.append(" AREA_CD "+((getString("AREA_CD").equals(""))?" is null ":"=")+getString("AREA_CD")+",");
		sql.append(" GRP_CD1 "+((getString("GRP_CD1").equals(""))?" is null ":"=")+getString("GRP_CD1")+",");
		sql.append(" GRP_CD2 "+((getString("GRP_CD2").equals(""))?" is null ":"=")+getString("GRP_CD2")+",");
		sql.append(" GRP_CD3 "+((getString("GRP_CD3").equals(""))?" is null ":"=")+getString("GRP_CD3")+",");
		sql.append(" GRP_CD4 "+((getString("GRP_CD4").equals(""))?" is null ":"=")+getString("GRP_CD4")+",");
		sql.append(" CST_CALLING "+((getString("CST_CALLING").equals(""))?" is null ":"=")+getString("CST_CALLING")+",");
		sql.append(" SLS_DEST "+((getString("SLS_DEST").equals(""))?" is null ":"=")+getString("SLS_DEST")+",");
		sql.append(" CORP_CD "+((getString("CORP_CD").equals(""))?" is null ":"=")+getString("CORP_CD")+",");
		sql.append(" CDR_CD "+((getString("CDR_CD").equals(""))?" is null ":"=")+getString("CDR_CD")+",");
		sql.append(" OLD_CUS_CD1 "+((getString("OLD_CUS_CD1").equals(""))?" is null ":"=")+getString("OLD_CUS_CD1")+",");
		sql.append(" OLD_CUS_CD2 "+((getString("OLD_CUS_CD2").equals(""))?" is null ":"=")+getString("OLD_CUS_CD2")+",");
		sql.append(" OLD_CUS_CD3 "+((getString("OLD_CUS_CD3").equals(""))?" is null ":"=")+getString("OLD_CUS_CD3")+",");
		sql.append(" TRD_STP_FLG "+((getString("TRD_STP_FLG").equals(""))?" is null ":"=")+getString("TRD_STP_FLG")+",");
		sql.append(" RECPT_TYP "+((getString("RECPT_TYP").equals(""))?" is null ":"=")+getString("RECPT_TYP")+",");
		sql.append(" STR_ORG_CD "+((getString("STR_ORG_CD").equals(""))?" is null ":"=")+getString("STR_ORG_CD")+",");
		sql.append(" BU_AREA_CD "+((getString("BU_AREA_CD").equals(""))?" is null ":"=")+getString("BU_AREA_CD")+",");
		sql.append(" CORP_CD_SLS "+((getString("CORP_CD_SLS").equals(""))?" is null ":"=")+getString("CORP_CD_SLS")+",");
		sql.append(" PRIZ_RT_CD "+((getString("PRIZ_RT_CD").equals(""))?" is null ":"=")+getString("PRIZ_RT_CD")+",");
		sql.append(" RMK "+((getString("RMK").equals(""))?" is null ":"=")+getString("RMK")+",");
		sql.append(" PMIT_CLNT_CD "+((getString("PMIT_CLNT_CD").equals(""))?" is null ":"=")+getString("PMIT_CLNT_CD")+",");
		sql.append(" DFLT_SHP_DSTN_CD "+((getString("DFLT_SHP_DSTN_CD").equals(""))?" is null ":"=")+getString("DFLT_SHP_DSTN_CD")+",");
		sql.append(" DSP_ITM_CLNT_TYP "+((getString("DSP_ITM_CLNT_TYP").equals(""))?" is null ":"=")+getString("DSP_ITM_CLNT_TYP")+",");
		sql.append(" CNSMT_ITM_CLNT_TYP "+((getString("CNSMT_ITM_CLNT_TYP").equals(""))?" is null ":"=")+getString("CNSMT_ITM_CLNT_TYP")+",");
		sql.append(" FRNT_WHRS_CD "+((getString("FRNT_WHRS_CD").equals(""))?" is null ":"=")+getString("FRNT_WHRS_CD")+",");
		sql.append(" BIL_DSTN_CD "+((getString("BIL_DSTN_CD").equals(""))?" is null ":"=")+getString("BIL_DSTN_CD")+",");
		sql.append(" CUS_PYMT_PRID"+((getString("CUS_PYMT_PRID").equals(""))?" is null ":"=")+getString("CUS_PYMT_PRID")+",");
		sql.append(" CUS_BNK_CD "+((getString("CUS_BNK_CD").equals(""))?" is null ":"=")+getString("CUS_BNK_CD")+",");
		sql.append(" CUS_BNK_ACC "+((getString("CUS_BNK_ACC").equals(""))?" is null ":"=")+getString("CUS_BNK_ACC")+",");
		sql.append(" CUS_CRDT_LMT_AMT "+((getBigDecimal("CUS_CRDT_LMT_AMT").equals(""))?" is null ":"=")+getBigDecimal("CUS_CRDT_LMT_AMT")+",");
		sql.append(" CUS_ADD_PRIZ_TAX_CD "+((getString("CUS_ADD_PRIZ_TAX_CD").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_TAX_CD")+",");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP "+((getString("CUS_ADD_PRIZ_CAL_TYP").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_CAL_TYP")+",");
		sql.append(" CUS_ADD_PRIZ_RGS_NO "+((getString("CUS_ADD_PRIZ_RGS_NO").equals(""))?" is null ":"=")+getString("CUS_ADD_PRIZ_RGS_NO")+",");
		sql.append(" CUS_MLT_CRCY "+((getString("CUS_MLT_CRCY").equals(""))?" is null ":"=")+getString("CUS_MLT_CRCY")+",");
		sql.append(" CUS_CRCY_CD "+((getString("CUS_CRCY_CD").equals(""))?" is null ":"=")+getString("CUS_CRCY_CD")+",");
		sql.append(" CUS_AR_AC"+((getString("CUS_AR_AC").equals(""))?" is null ":"=")+getString("CUS_AR_AC")+",");
		sql.append(" CUS_PRFT_AC"+((getString("CUS_PRFT_AC").equals(""))?" is null ":"=")+getString("CUS_PRFT_AC")+",");
		sql.append(" CUS_TAX_AC"+((getString("CUS_TAX_AC").equals(""))?" is null ":"=")+getString("CUS_TAX_AC")+",");
		sql.append(" SUP_DEBT_AC"+((getString("SUP_DEBT_AC").equals(""))?" is null ":"=")+getString("SUP_DEBT_AC")+",");
		sql.append(" SUP_PRPY_AC"+((getString("SUP_PRPY_AC").equals(""))?" is null ":"=")+getString("SUP_PRPY_AC")+",");
		sql.append(" SUP_PRPYFT_AC"+((getString("SUP_PRPYFT_AC").equals(""))?" is null ":"=")+getString("SUP_PRPYFT_AC")+",");
		sql.append(" SUP_PYMT_PRID "+((getString("SUP_PYMT_PRID").equals(""))?" is null ":"=")+getString("SUP_PYMT_PRID")+",");
		sql.append(" OVS_SUP_TYP "+((getString("OVS_SUP_TYP").equals(""))?" is null ":"=")+getString("OVS_SUP_TYP")+",");
		sql.append(" MAIN_STR_TYP "+((getString("MAIN_STR_TYP").equals(""))?" is null ":"=")+getString("MAIN_STR_TYP")+",");
		sql.append(" CONS_AC_TYP "+((getString("CONS_AC_TYP").equals(""))?" is null ":"=")+getString("CONS_AC_TYP")+",");
		sql.append(" DFLT_RCV_DSTN_CD "+((getString("DFLT_RCV_DSTN_CD").equals(""))?" is null ":"=")+getString("DFLT_RCV_DSTN_CD")+",");
		sql.append(" SITE_NM "+((getString("SITE_NM").equals(""))?" is null ":"=")+getString("SITE_NM")+",");
		sql.append(" SUP_ADD_PRIZ_TAX_CD "+((getString("SUP_ADD_PRIZ_TAX_CD").equals(""))?" is null ":"=")+getString("SUP_ADD_PRIZ_TAX_CD")+",");
		sql.append(" CUS_PRC_TAB_CD "+((getString("CUS_PRC_TAB_CD").equals(""))?" is null ":"=")+getString("CUS_PRC_TAB_CD")+",");
		sql.append(" UPD_DTTM = TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" UPD_CHRG_CD"+((getString("UPD_CHRG_CD").equals(""))?" is null ":"=")+getString("UPD_CHRG_CD")+",");
		sql.append(" UPD_PGID "+((getString("UPD_PGID").equals(""))?" is null ":"=")+getString("UPD_PGID")+",");
		sql.append(" FM_TYP "+((getString("FM_TYP").equals(""))?" is null ":"=")+getString("FM_TYP")+"");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public SelectResultRset SELECT_M0101(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" NVL(VDR_CD,'') AS VDR_CD,");
		sql.append(" NVL(APL_BDT,'') AS APL_BDT,");
		sql.append(" NVL(APL_EDT,'') AS APL_EDT,");
		sql.append(" NVL(GNR_ADM_NO,'') AS GNR_ADM_NO,");
		sql.append(" NVL(TMP_AC_TYP,'') AS TMP_AC_TYP,");
		sql.append(" NVL(CTRL_DVSN_CD,'') AS CTRL_DVSN_CD,");
		sql.append(" NVL(TRPT_CLSS_D_TYP,'') AS TRPT_CLSS_D_TYP,");
		sql.append(" NVL(CTY_CD,'') AS CTY_CD,");
		sql.append(" NVL(CN_PST_CD,'') AS CN_PST_CD,");
		sql.append(" NVL(TRPT_ADR_CN,'') AS TRPT_ADR_CN,");
		sql.append(" NVL(TRPT_NM_CN,'') AS TRPT_NM_CN,");
		sql.append(" NVL(TRPT_AB_CN,'') AS TRPT_AB_CN,");
		sql.append(" NVL(TEL_NO,'') AS TEL_NO,");
		sql.append(" NVL(FAX_NO,'') AS FAX_NO,");
		sql.append(" NVL(CUS_CLSS_CD,'') AS CUS_CLSS_CD,");
		sql.append(" NVL(CUS_CLSS_DTL_CD,'') AS CUS_CLSS_DTL_CD,");
		sql.append(" NVL(SLS_CHRG_CD,'') AS SLS_CHRG_CD,");
		sql.append(" NVL(SLS_CHNL_CD,'') AS SLS_CHNL_CD,");
		sql.append(" NVL(SLS_SLS_DEPT,'') AS SLS_SLS_DEPT,");
		sql.append(" NVL(BRNC_CD,'') AS BRNC_CD,");
		sql.append(" NVL(SUB_BRNC_CD,'') AS SUB_BRNC_CD,");
		sql.append(" NVL(SUB_SECT_CD,'') AS SUB_SECT_CD,");
		sql.append(" NVL(SLS_CHNL_RGN_CD,'') AS SLS_CHNL_RGN_CD,");
		sql.append(" NVL(STATE_CD,'') AS STATE_CD,");
		sql.append(" NVL(AREA_CD,'') AS AREA_CD,");
		sql.append(" NVL(GRP_CD1,'') AS GRP_CD1,");
		sql.append(" NVL(GRP_CD2,'') AS GRP_CD2,");
		sql.append(" NVL(GRP_CD3,'') AS GRP_CD3,");
		sql.append(" NVL(GRP_CD4,'') AS GRP_CD4,");
		sql.append(" NVL(CST_CALLING,'') AS CST_CALLING,");
		sql.append(" NVL(SLS_DEST,'') AS SLS_DEST,");
		sql.append(" NVL(CORP_CD,'') AS CORP_CD,");
		sql.append(" NVL(CDR_CD,'') AS CDR_CD,");
		sql.append(" NVL(OLD_CUS_CD1,'') AS OLD_CUS_CD1,");
		sql.append(" NVL(OLD_CUS_CD2,'') AS OLD_CUS_CD2,");
		sql.append(" NVL(OLD_CUS_CD3,'') AS OLD_CUS_CD3,");
		sql.append(" NVL(TRD_STP_FLG,'') AS TRD_STP_FLG,");
		sql.append(" NVL(RECPT_TYP,'') AS RECPT_TYP,");
		sql.append(" NVL(STR_ORG_CD,'') AS STR_ORG_CD,");
		sql.append(" NVL(BU_AREA_CD,'') AS BU_AREA_CD,");
		sql.append(" NVL(CORP_CD_SLS,'') AS CORP_CD_SLS,");
		sql.append(" NVL(PRIZ_RT_CD,'') AS PRIZ_RT_CD,");
		sql.append(" NVL(RMK,' ') AS RMK,");
		sql.append(" NVL(PMIT_CLNT_CD,'') AS PMIT_CLNT_CD,");
		sql.append(" NVL(DFLT_SHP_DSTN_CD,'') AS DFLT_SHP_DSTN_CD,");
		sql.append(" NVL(DSP_ITM_CLNT_TYP,'') AS DSP_ITM_CLNT_TYP,");
		sql.append(" NVL(CNSMT_ITM_CLNT_TYP,'') AS CNSMT_ITM_CLNT_TYP,");
		sql.append(" NVL(FRNT_WHRS_CD,'') AS FRNT_WHRS_CD,");
		sql.append(" NVL(BIL_DSTN_CD,'') AS BIL_DSTN_CD,");
		sql.append(" NVL(CUS_PYMT_PRID,'') AS CUS_PYMT_PRID,");
		sql.append(" NVL(CUS_BNK_CD,'') AS CUS_BNK_CD,");
		sql.append(" NVL(CUS_BNK_ACC,'') AS CUS_BNK_ACC,");
		sql.append(" NVL(CUS_CRDT_LMT_AMT,'') AS CUS_CRDT_LMT_AMT,");
		sql.append(" NVL(CUS_ADD_PRIZ_TAX_CD,'') AS CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" NVL(CUS_ADD_PRIZ_CAL_TYP,'') AS CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" NVL(CUS_ADD_PRIZ_RGS_NO,'') AS CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" NVL(CUS_MLT_CRCY,'') AS CUS_MLT_CRCY,");
		sql.append(" NVL(CUS_CRCY_CD,'') AS CUS_CRCY_CD,");
		sql.append(" NVL(CUS_AR_AC,'') AS CUS_AR_AC,");
		sql.append(" NVL(CUS_PRFT_AC,'') AS CUS_PRFT_AC,");
		sql.append(" NVL(CUS_TAX_AC,'') AS CUS_TAX_AC,");
		sql.append(" NVL(SUP_DEBT_AC,'') AS SUP_DEBT_AC,");
		sql.append(" NVL(SUP_PRPY_AC,'') AS SUP_PRPY_AC,");
		sql.append(" NVL(SUP_PRPYFT_AC,'') AS SUP_PRPYFT_AC,");
		sql.append(" NVL(SUP_PYMT_PRID,'') AS SUP_PYMT_PRID,");
		sql.append(" NVL(OVS_SUP_TYP,'') AS OVS_SUP_TYP,");
		sql.append(" NVL(MAIN_STR_TYP,'') AS MAIN_STR_TYP,");
		sql.append(" NVL(CONS_AC_TYP,'') AS CONS_AC_TYP,");
		sql.append(" NVL(DFLT_RCV_DSTN_CD,'') AS DFLT_RCV_DSTN_CD,");
		sql.append(" NVL(SITE_NM,'') AS SITE_NM,");
		sql.append(" NVL(SUP_ADD_PRIZ_TAX_CD,'') AS SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" NVL(CUS_PRC_TAB_CD,'') AS CUS_PRC_TAB_CD,");
		sql.append(" TO_CHAR(NVL(RGS_DTTM,''),'YYYYMMDDHH24MISS') AS RGS_DTTM,");
		sql.append(" NVL(RGS_CHRG_CD,'') AS RGS_CHRG_CD,");
		sql.append(" NVL(RGS_PGID,'') AS RGS_PGID,");
		sql.append(" TO_CHAR(NVL(UPD_DTTM,''),'YYYYMMDDHH24MISS') AS UPD_DTTM,");
		sql.append(" NVL(UPD_CHRG_CD,'') AS UPD_CHRG_CD,");
		sql.append(" NVL(UPD_PGID,'') AS UPD_PGID,");
		sql.append(" NVL(FM_TYP,'') AS FM_TYP");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" ORDER BY VDR_CD,APL_BDT");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0112(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" NVL(VDR_CD,'') AS VDR_CD ,");
		sql.append(" NVL(APL_BDT,'') AS APL_BDT,");
		sql.append(" NVL(APL_EDT,'') AS APL_EDT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <= APL_EDT");
		sql.append(" ORDER BY VDR_CD,APL_BDT");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0113(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" NVL(VDR_CD,'') AS VDR_CD ,");
		sql.append(" NVL(APL_BDT,'') AS APL_BDT,");
		sql.append(" NVL(APL_EDT,'') AS APL_EDT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT > "+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <= APL_EDT");
		sql.append(" ORDER BY VDR_CD,APL_BDT");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public int INSERT_M0101(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" INSERT INTO M01(");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP)");
		sql.append(" values (");
		sql.append(" "+getString("VDR_CD")+",");
		sql.append(" "+getString("APL_BDT")+",");
		sql.append(" "+getString("APL_EDT")+",");
		sql.append(" "+getString("GNR_ADM_NO")+",");
		sql.append(" "+getString("TMP_AC_TYP")+",");
		sql.append(" "+getString("CTRL_DVSN_CD")+",");
		sql.append(" "+getString("TRPT_CLSS_D_TYP")+",");
		sql.append(" "+getString("CTY_CD")+",");
		sql.append(" "+getString("CN_PST_CD")+",");
		sql.append(" "+getString("TRPT_ADR_CN")+",");
		sql.append(" "+getString("TRPT_NM_CN")+",");
		sql.append(" "+getString("TRPT_AB_CN")+",");
		sql.append(" "+getString("TEL_NO")+",");
		sql.append(" "+getString("FAX_NO")+",");
		sql.append(" "+getString("CUS_CLSS_CD")+",");
		sql.append(" "+getString("CUS_CLSS_DTL_CD")+",");
		sql.append(" "+getString("SLS_CHRG_CD")+",");
		sql.append(" "+getString("SLS_CHNL_CD")+",");
		sql.append(" "+getString("SLS_SLS_DEPT")+",");
		sql.append(" "+getString("BRNC_CD")+",");
		sql.append(" "+getString("SUB_BRNC_CD")+",");
		sql.append(" "+getString("SUB_SECT_CD")+",");
		sql.append(" "+getString("SLS_CHNL_RGN_CD")+",");
		sql.append(" "+getString("STATE_CD")+",");
		sql.append(" "+getString("AREA_CD")+",");
		sql.append(" "+getString("GRP_CD1")+",");
		sql.append(" "+getString("GRP_CD2")+",");
		sql.append(" "+getString("GRP_CD3")+",");
		sql.append(" "+getString("GRP_CD4")+",");
		sql.append(" "+getString("CST_CALLING")+",");
		sql.append(" "+getString("SLS_DEST")+",");
		sql.append(" "+getString("CORP_CD")+",");
		sql.append(" "+getString("CDR_CD")+",");
		sql.append(" "+getString("OLD_CUS_CD1")+",");
		sql.append(" "+getString("OLD_CUS_CD2")+",");
		sql.append(" "+getString("OLD_CUS_CD3")+",");
		sql.append(" "+getString("TRD_STP_FLG")+",");
		sql.append(" "+getString("RECPT_TYP")+",");
		sql.append(" "+getString("STR_ORG_CD")+",");
		sql.append(" "+getString("BU_AREA_CD")+",");
		sql.append(" "+getString("CORP_CD_SLS")+",");
		sql.append(" "+getString("PRIZ_RT_CD")+",");
		sql.append(" "+getString("RMK")+",");
		sql.append(" "+getString("PMIT_CLNT_CD")+",");
		sql.append(" "+getString("DFLT_SHP_DSTN_CD")+",");
		sql.append(" "+getString("DSP_ITM_CLNT_TYP")+",");
		sql.append(" "+getString("CNSMT_ITM_CLNT_TYP")+",");
		sql.append(" "+getString("FRNT_WHRS_CD")+",");
		sql.append(" "+getString("BIL_DSTN_CD")+",");
		sql.append(" "+getString("CUS_PYMT_PRID")+",");
		sql.append(" "+getString("CUS_BNK_CD")+",");
		sql.append(" "+getString("CUS_BNK_ACC")+",");
		sql.append(" "+getBigDecimal("CUS_CRDT_LMT_AMT")+",");
		sql.append(" "+getString("CUS_ADD_PRIZ_TAX_CD")+",");
		sql.append(" "+getString("CUS_ADD_PRIZ_CAL_TYP")+",");
		sql.append(" "+getString("CUS_ADD_PRIZ_RGS_NO")+",");
		sql.append(" "+getString("CUS_MLT_CRCY")+",");
		sql.append(" "+getString("CUS_CRCY_CD")+",");
		sql.append(" "+getString("CUS_AR_AC")+",");
		sql.append(" "+getString("CUS_PRFT_AC")+",");
		sql.append(" "+getString("CUS_TAX_AC")+",");
		sql.append(" "+getString("SUP_DEBT_AC")+",");
		sql.append(" "+getString("SUP_PRPY_AC")+",");
		sql.append(" "+getString("SUP_PRPYFT_AC")+",");
		sql.append(" "+getString("SUP_PYMT_PRID")+",");
		sql.append(" "+getString("OVS_SUP_TYP")+",");
		sql.append(" "+getString("MAIN_STR_TYP")+",");
		sql.append(" "+getString("CONS_AC_TYP")+",");
		sql.append(" "+getString("DFLT_RCV_DSTN_CD")+",");
		sql.append(" "+getString("SITE_NM")+",");
		sql.append(" "+getString("SUP_ADD_PRIZ_TAX_CD")+",");
		sql.append(" "+getString("CUS_PRC_TAB_CD")+",");
		sql.append(" TO_DATE("+getString("RGS_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" "+getString("RGS_CHRG_CD")+",");
		sql.append(" "+getString("RGS_PGID")+",");
		sql.append(" TO_DATE("+getString("UPD_DTTM")+",'YYYYMMDDHH24MISS'),");
		sql.append(" "+getString("UPD_CHRG_CD")+",");
		sql.append(" "+getString("UPD_PGID")+",");
		sql.append(" "+getString("FM_TYP")+"");
		sql.append(" )");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int DELETE_M0103(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" DELETE");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int DELETE_M0104(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" DELETE");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT = (");
		sql.append(" SELECT MIN(APL_BDT) AS APL_BDT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP")+"");
		sql.append(" )");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int INSERT_BM0101(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" INSERT INTO BM01(");
		sql.append(" SEQ_NO,");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP)");
		sql.append(" SELECT SEQ_BM01.NEXTVAL,");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int INSERT_BM0103(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" INSERT INTO BM01(");
		sql.append(" SEQ_NO,");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP)");
		sql.append(" SELECT SEQ_BM01.NEXTVAL,");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("SYSDATE").equals(""))?" is null ":"=")+getString("SYSDATE")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public int INSERT_BM0102(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" INSERT INTO BM01(");
		sql.append(" SEQ_NO,");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP)");
		sql.append(" SELECT SEQ_BM01.NEXTVAL,");
		sql.append(" VDR_CD,");
		sql.append(" APL_BDT,");
		sql.append(" APL_EDT,");
		sql.append(" GNR_ADM_NO,");
		sql.append(" TMP_AC_TYP ,");
		sql.append(" CTRL_DVSN_CD ,");
		sql.append(" TRPT_CLSS_D_TYP ,");
		sql.append(" CTY_CD,");
		sql.append(" CN_PST_CD,");
		sql.append(" TRPT_ADR_CN,");
		sql.append(" TRPT_NM_CN,");
		sql.append(" TRPT_AB_CN,");
		sql.append(" TEL_NO,");
		sql.append(" FAX_NO,");
		sql.append(" CUS_CLSS_CD,");
		sql.append(" CUS_CLSS_DTL_CD,");
		sql.append(" SLS_CHRG_CD ,");
		sql.append(" SLS_CHNL_CD,");
		sql.append(" SLS_SLS_DEPT,");
		sql.append(" BRNC_CD,");
		sql.append(" SUB_BRNC_CD,");
		sql.append(" SUB_SECT_CD,");
		sql.append(" SLS_CHNL_RGN_CD,");
		sql.append(" STATE_CD,");
		sql.append(" AREA_CD,");
		sql.append(" GRP_CD1,");
		sql.append(" GRP_CD2,");
		sql.append(" GRP_CD3,");
		sql.append(" GRP_CD4,");
		sql.append(" CST_CALLING,");
		sql.append(" SLS_DEST,");
		sql.append(" CORP_CD,");
		sql.append(" CDR_CD,");
		sql.append(" OLD_CUS_CD1,");
		sql.append(" OLD_CUS_CD2,");
		sql.append(" OLD_CUS_CD3,");
		sql.append(" TRD_STP_FLG,");
		sql.append(" RECPT_TYP,");
		sql.append(" STR_ORG_CD,");
		sql.append(" BU_AREA_CD,");
		sql.append(" CORP_CD_SLS,");
		sql.append(" PRIZ_RT_CD,");
		sql.append(" RMK,");
		sql.append(" PMIT_CLNT_CD,");
		sql.append(" DFLT_SHP_DSTN_CD,");
		sql.append(" DSP_ITM_CLNT_TYP,");
		sql.append(" CNSMT_ITM_CLNT_TYP,");
		sql.append(" FRNT_WHRS_CD,");
		sql.append(" BIL_DSTN_CD,");
		sql.append(" CUS_PYMT_PRID,");
		sql.append(" CUS_BNK_CD,");
		sql.append(" CUS_BNK_ACC,");
		sql.append(" CUS_CRDT_LMT_AMT,");
		sql.append(" CUS_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_ADD_PRIZ_CAL_TYP,");
		sql.append(" CUS_ADD_PRIZ_RGS_NO,");
		sql.append(" CUS_MLT_CRCY,");
		sql.append(" CUS_CRCY_CD,");
		sql.append(" CUS_AR_AC,");
		sql.append(" CUS_PRFT_AC,");
		sql.append(" CUS_TAX_AC,");
		sql.append(" SUP_DEBT_AC,");
		sql.append(" SUP_PRPY_AC,");
		sql.append(" SUP_PRPYFT_AC,");
		sql.append(" SUP_PYMT_PRID,");
		sql.append(" OVS_SUP_TYP,");
		sql.append(" MAIN_STR_TYP,");
		sql.append(" CONS_AC_TYP,");
		sql.append(" DFLT_RCV_DSTN_CD,");
		sql.append(" SITE_NM,");
		sql.append(" SUP_ADD_PRIZ_TAX_CD,");
		sql.append(" CUS_PRC_TAB_CD,");
		sql.append(" RGS_DTTM,");
		sql.append(" RGS_CHRG_CD,");
		sql.append(" RGS_PGID,");
		sql.append(" UPD_DTTM,");
		sql.append(" UPD_CHRG_CD,");
		sql.append(" UPD_PGID,");
		sql.append(" FM_TYP");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("SYSDATE").equals(""))?" is null ":"=")+getString("SYSDATE")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		int updateCount = db.executeUpdate();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return updateCount;
	}

	public SelectResultRset SELECT_FLATC01(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" NVL( TRPT_ENGL_NM ,'' )AS TRPT_ENGL_NM ,");
		sql.append(" NVL( TRPT_ENGL_AB ,'' )AS TRPT_ENGL_AB ,");
		sql.append(" NVL( RGN_TYP,'' )AS RGN_TYP,");
		sql.append(" NVL( CNTY_CD,'' )AS CNTY_CD,");
		sql.append(" NVL( ADR_CD,'' )AS ADR_CD,");
		sql.append(" NVL( PST_NO,'' )AS PST_NO,");
		sql.append(" NVL( TRPT_ENGL_ADR,'' )AS TRPT_ENGL_ADR,");
		sql.append(" NVL( TEL_NO,'' )AS TEL_NO,");
		sql.append(" NVL( FAX_NO,'' )AS FAX_NO,");
		sql.append(" NVL( TLX_NO,'' )AS TLX_NO,");
		sql.append(" NVL( CO_CD,'' )AS CO_CD,");
		sql.append(" NVL( P_G_CD,'' )AS P_G_CD");
		sql.append(" FROM FLATC");
		sql.append(" WHERE");
		sql.append(" FLT_CD "+((getString("FLT_CD").equals(""))?" is null ":"=")+getString("FLT_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M2101(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" NVL(CD_VALUE,'') AS CD_VALUE,");
		sql.append(" NVL(CD_NM_CN,'') AS CD_NM_CN,");
		sql.append(" NVL(GNRL_ITM1,'') AS GNRL_ITM1");
		sql.append(" FROM M21");
		sql.append(" WHERE");
		sql.append(" CD_TYP_CD "+((getString("CD_TYP_CD").equals(""))?" is null ":"=")+getString("CD_TYP_CD")+"");
		sql.append(" AND");
		sql.append(" CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M2102(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT ");
		sql.append("  COUNT(*) AS COUNT ");
		sql.append("  FROM M21  ");
		sql.append("  WHERE ");
		sql.append("  FM_TYP<>"+getString("FM_TYP_9")+"");
		sql.append("  AND ");
		sql.append("  FM_TYP<>"+getString("FM_TYP_X")+"");
		sql.append("  AND");
		sql.append("  APL_BDT <"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("  AND ");
		sql.append("  APL_EDT >"+((getString("SYS_DATE").equals(""))?" is null ":"=")+getString("SYS_DATE")+" ");
		sql.append("  AND");
		sql.append("  CD_VALUE"+((getString("CD_VALUE").equals(""))?" is null ":"=")+getString("CD_VALUE")+"");
		sql.append("  AND ");
		sql.append("  CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+"");
		sql.append("  AND ");
		sql.append("  CD_TYP_CD "+((getString("CD_TYP_CD").equals(""))?" is null ":"=")+getString("CD_TYP_CD")+" ");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1901(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(SLCP_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M19");
		sql.append(" WHERE");
		sql.append(" SLCP_CD "+((getString("SLCP_CD").equals(""))?" is null ":"=")+getString("SLCP_CD")+"");
		sql.append(" AND");
		sql.append(" CHRG_TYP "+((getString("CHRG_TYP").equals(""))?" is null ":"=")+getString("CHRG_TYP")+"");
		sql.append(" AND");
		sql.append(" CHRG_CD "+((getString("CHRG_CD").equals(""))?" is null ":"=")+getString("CHRG_CD")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_X")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_9")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0102(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(VDR_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" TRPT_CLSS_D_TYP"+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0107(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(VDR_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" TRPT_CLSS_D_TYP<>"+getString("TRPT_CLSS_D_TYP")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0108(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" TRIM(NVL(OLD_CUS_CD1,'')) AS OLD_CUS_CD1,");
		sql.append(" TRIM(NVL(OLD_CUS_CD3,'')) AS OLD_CUS_CD3");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" TRPT_CLSS_D_TYP"+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0109(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" TRIM(NVL(TRPT_CLSS_D_TYP,'')) AS TRPT_CLSS_D_TYP ");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0104(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(VDR_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" TRPT_CLSS_D_TYP "+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1501(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(CTRL_DVSN_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M15");
		sql.append(" WHERE");
		sql.append(" WHRS_CD "+((getString("WHRS_CD").equals(""))?" is null ":"=")+getString("WHRS_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_X")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1502(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(CTRL_DVSN_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M15");
		sql.append(" WHERE");
		sql.append(" WHRS_CD "+((getString("WHRS_CD").equals(""))?" is null ":"=")+getString("WHRS_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_X")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0103(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(VDR_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT "+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" TO_CHAR(NVL( UPD_DTTM,''),'YYYYMMDDHH24MISS') "+((getString("UPD_DTTM").equals(""))?" is null ":"=")+getString("UPD_DTTM")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0105(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" TRPT_NM_CN");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_6")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1503(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" WHRS_NM_CN");
		sql.append(" FROM");
		sql.append(" M15");
		sql.append(" WHERE");
		sql.append(" CTRL_DVSN_CD "+((getString("CTRL_DVSN_CD").equals(""))?" is null ":"=")+getString("CTRL_DVSN_CD")+"");
		sql.append(" AND");
		sql.append(" WHRS_CD "+((getString("WHRS_CD").equals(""))?" is null ":"=")+getString("WHRS_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_X")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0106(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(VDR_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD <> "+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" OLD_CUS_CD1 "+((getString("OLD_CUS_CD1").equals(""))?" is null ":"=")+getString("OLD_CUS_CD1")+"");
		sql.append(" AND");
		sql.append(" OLD_CUS_CD2 "+((getString("OLD_CUS_CD2").equals(""))?" is null ":"=")+getString("OLD_CUS_CD2")+"");
		sql.append(" AND");
		sql.append(" OLD_CUS_CD3 "+((getString("OLD_CUS_CD3").equals(""))?" is null ":"=")+getString("OLD_CUS_CD3")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1902(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(SLCP_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M19");
		sql.append(" WHERE");
		sql.append(" SLCP_CD "+((getString("SLCP_CD").equals(""))?" is null ":"=")+getString("SLCP_CD")+"");
		sql.append(" AND");
		sql.append(" CHRG_CD "+((getString("CHRG_CD").equals(""))?" is null ":"=")+getString("CHRG_CD")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_X")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_9")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0110(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" COUNT(VDR_CD) AS COUNT");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0111(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT ");
		sql.append(" VDR_CD");
		sql.append(" FROM ");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" CUS_ADD_PRIZ_RGS_NO =	"+getString("CUS_ADD_PRIZ_RGS_NO")+"");
		sql.append(" AND");
		sql.append(" TRPT_CLSS_D_TYP "+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+"");
		sql.append(" AND ");
		sql.append(" FM_TYP<>"+getString("FM_TYP_6")+"");
		sql.append(" AND ");
		sql.append(" FM_TYP<>"+getString("FM_TYP_9")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M1903(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append("	SELECT ");
		sql.append("	NVL(CHRG_NM_CN,'') AS CHRG_NM_CN ");
		sql.append("	FROM ");
		sql.append("	M19 ");
		sql.append("	WHERE  ");
		sql.append("	CHRG_CD "+((getString("CHRG_CD").equals(""))?" is null ":"=")+getString("CHRG_CD")+" ");
		sql.append("	AND");
		sql.append("	FM_TYP <> "+getString("FM_TYP_6")+"");
		sql.append("	AND");
		sql.append("	FM_TYP <> "+getString("FM_TYP_9")+" ");
		sql.append("	");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0115(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" TRPT_NM_CN");
		sql.append(" FROM");
		sql.append(" M01");
		sql.append(" WHERE");
		sql.append(" VDR_CD "+((getString("VDR_CD").equals(""))?" is null ":"=")+getString("VDR_CD")+"");
		sql.append(" AND");
		sql.append(" APL_BDT <"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("APL_BDT").equals(""))?" is null ":"=")+getString("APL_BDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_6")+"");
		sql.append(" AND");
		sql.append(" TRPT_CLSS_D_TYP "+((getString("TRPT_CLSS_D_TYP").equals(""))?" is null ":"=")+getString("TRPT_CLSS_D_TYP")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}

	public SelectResultRset SELECT_M0116(FrameworkDbCommon db) throws Exception {
		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT");
		sql.append(" PRIZ_RT_CN");
		sql.append(" FROM");
		sql.append(" M26");
		sql.append(" WHERE");
		sql.append(" PRIZ_RT_CD "+((getString("PRIZ_RT_CD").equals(""))?" is null ":"=")+getString("PRIZ_RT_CD")+"");
		sql.append(" AND");
		sql.append(" APL_EDT >"+((getString("APL_EDT").equals(""))?" is null ":"=")+getString("APL_EDT")+"");
		sql.append(" AND");
		sql.append(" FM_TYP <> "+getString("FM_TYP_6")+"");
		db.setSql(sql.toString());
		lastSql_ =sql.toString();
		SelectResultRset srr = db.executeQuery();
		paramsString     = new Hashtable();
		paramsBigDecimal = new Hashtable();
		paramsFree       = new Hashtable();

		return srr;
	}


	public void setNEW_APL_BDT(String value){
		if(value==null) {
			paramsString.remove("NEW_APL_BDT");
			return;
		}
		paramsString.put("NEW_APL_BDT",value);
	}


	public void setAPL_EDT(String value){
		if(value==null) {
			paramsString.remove("APL_EDT");
			return;
		}
		paramsString.put("APL_EDT",value);
	}


	public void setGNR_ADM_NO(String value){
		if(value==null) {
			paramsString.remove("GNR_ADM_NO");
			return;
		}
		paramsString.put("GNR_ADM_NO",value);
	}


	public void setTMP_AC_TYP(String value){
		if(value==null) {
			paramsString.remove("TMP_AC_TYP");
			return;
		}
		paramsString.put("TMP_AC_TYP",value);
	}


	public void setTRPT_CLSS_D_TYP(String value){
		if(value==null) {
			paramsString.remove("TRPT_CLSS_D_TYP");
			return;
		}
		paramsString.put("TRPT_CLSS_D_TYP",value);
	}


	public void setCTY_CD(String value){
		if(value==null) {
			paramsString.remove("CTY_CD");
			return;
		}
		paramsString.put("CTY_CD",value);
	}


	public void setCN_PST_CD(String value){
		if(value==null) {
			paramsString.remove("CN_PST_CD");
			return;
		}
		paramsString.put("CN_PST_CD",value);
	}


	public void setTRPT_ADR_CN(String value){
		if(value==null) {
			paramsString.remove("TRPT_ADR_CN");
			return;
		}
		paramsString.put("TRPT_ADR_CN",value);
	}


	public void setTRPT_NM_CN(String value){
		if(value==null) {
			paramsString.remove("TRPT_NM_CN");
			return;
		}
		paramsString.put("TRPT_NM_CN",value);
	}


	public void setTRPT_AB_CN(String value){
		if(value==null) {
			paramsString.remove("TRPT_AB_CN");
			return;
		}
		paramsString.put("TRPT_AB_CN",value);
	}


	public void setTEL_NO(String value){
		if(value==null) {
			paramsString.remove("TEL_NO");
			return;
		}
		paramsString.put("TEL_NO",value);
	}


	public void setFAX_NO(String value){
		if(value==null) {
			paramsString.remove("FAX_NO");
			return;
		}
		paramsString.put("FAX_NO",value);
	}


	public void setCUS_CLSS_CD(String value){
		if(value==null) {
			paramsString.remove("CUS_CLSS_CD");
			return;
		}
		paramsString.put("CUS_CLSS_CD",value);
	}


	public void setCUS_CLSS_DTL_CD(String value){
		if(value==null) {
			paramsString.remove("CUS_CLSS_DTL_CD");
			return;
		}
		paramsString.put("CUS_CLSS_DTL_CD",value);
	}


	public void setSLS_CHRG_CD(String value){
		if(value==null) {
			paramsString.remove("SLS_CHRG_CD");
			return;
		}
		paramsString.put("SLS_CHRG_CD",value);
	}


	public void setSLS_CHNL_CD(String value){
		if(value==null) {
			paramsString.remove("SLS_CHNL_CD");
			return;
		}
		paramsString.put("SLS_CHNL_CD",value);
	}


	public void setSLS_SLS_DEPT(String value){
		if(value==null) {
			paramsString.remove("SLS_SLS_DEPT");
			return;
		}
		paramsString.put("SLS_SLS_DEPT",value);
	}


	public void setBRNC_CD(String value){
		if(value==null) {
			paramsString.remove("BRNC_CD");
			return;
		}
		paramsString.put("BRNC_CD",value);
	}


	public void setSUB_BRNC_CD(String value){
		if(value==null) {
			paramsString.remove("SUB_BRNC_CD");
			return;
		}
		paramsString.put("SUB_BRNC_CD",value);
	}


	public void setSUB_SECT_CD(String value){
		if(value==null) {
			paramsString.remove("SUB_SECT_CD");
			return;
		}
		paramsString.put("SUB_SECT_CD",value);
	}


	public void setSLS_CHNL_RGN_CD(String value){
		if(value==null) {
			paramsString.remove("SLS_CHNL_RGN_CD");
			return;
		}
		paramsString.put("SLS_CHNL_RGN_CD",value);
	}


	public void setSTATE_CD(String value){
		if(value==null) {
			paramsString.remove("STATE_CD");
			return;
		}
		paramsString.put("STATE_CD",value);
	}


	public void setAREA_CD(String value){
		if(value==null) {
			paramsString.remove("AREA_CD");
			return;
		}
		paramsString.put("AREA_CD",value);
	}


	public void setGRP_CD1(String value){
		if(value==null) {
			paramsString.remove("GRP_CD1");
			return;
		}
		paramsString.put("GRP_CD1",value);
	}


	public void setGRP_CD2(String value){
		if(value==null) {
			paramsString.remove("GRP_CD2");
			return;
		}
		paramsString.put("GRP_CD2",value);
	}


	public void setGRP_CD3(String value){
		if(value==null) {
			paramsString.remove("GRP_CD3");
			return;
		}
		paramsString.put("GRP_CD3",value);
	}


	public void setGRP_CD4(String value){
		if(value==null) {
			paramsString.remove("GRP_CD4");
			return;
		}
		paramsString.put("GRP_CD4",value);
	}


	public void setCST_CALLING(String value){
		if(value==null) {
			paramsString.remove("CST_CALLING");
			return;
		}
		paramsString.put("CST_CALLING",value);
	}


	public void setSLS_DEST(String value){
		if(value==null) {
			paramsString.remove("SLS_DEST");
			return;
		}
		paramsString.put("SLS_DEST",value);
	}


	public void setCORP_CD(String value){
		if(value==null) {
			paramsString.remove("CORP_CD");
			return;
		}
		paramsString.put("CORP_CD",value);
	}


	public void setCDR_CD(String value){
		if(value==null) {
			paramsString.remove("CDR_CD");
			return;
		}
		paramsString.put("CDR_CD",value);
	}


	public void setOLD_CUS_CD1(String value){
		if(value==null) {
			paramsString.remove("OLD_CUS_CD1");
			return;
		}
		paramsString.put("OLD_CUS_CD1",value);
	}


	public void setOLD_CUS_CD2(String value){
		if(value==null) {
			paramsString.remove("OLD_CUS_CD2");
			return;
		}
		paramsString.put("OLD_CUS_CD2",value);
	}


	public void setOLD_CUS_CD3(String value){
		if(value==null) {
			paramsString.remove("OLD_CUS_CD3");
			return;
		}
		paramsString.put("OLD_CUS_CD3",value);
	}


	public void setTRD_STP_FLG(String value){
		if(value==null) {
			paramsString.remove("TRD_STP_FLG");
			return;
		}
		paramsString.put("TRD_STP_FLG",value);
	}


	public void setRECPT_TYP(String value){
		if(value==null) {
			paramsString.remove("RECPT_TYP");
			return;
		}
		paramsString.put("RECPT_TYP",value);
	}


	public void setSTR_ORG_CD(String value){
		if(value==null) {
			paramsString.remove("STR_ORG_CD");
			return;
		}
		paramsString.put("STR_ORG_CD",value);
	}


	public void setBU_AREA_CD(String value){
		if(value==null) {
			paramsString.remove("BU_AREA_CD");
			return;
		}
		paramsString.put("BU_AREA_CD",value);
	}


	public void setCORP_CD_SLS(String value){
		if(value==null) {
			paramsString.remove("CORP_CD_SLS");
			return;
		}
		paramsString.put("CORP_CD_SLS",value);
	}


	public void setPRIZ_RT_CD(String value){
		if(value==null) {
			paramsString.remove("PRIZ_RT_CD");
			return;
		}
		paramsString.put("PRIZ_RT_CD",value);
	}


	public void setRMK(String value){
		if(value==null) {
			paramsString.remove("RMK");
			return;
		}
		paramsString.put("RMK",value);
	}


	public void setPMIT_CLNT_CD(String value){
		if(value==null) {
			paramsString.remove("PMIT_CLNT_CD");
			return;
		}
		paramsString.put("PMIT_CLNT_CD",value);
	}


	public void setDFLT_SHP_DSTN_CD(String value){
		if(value==null) {
			paramsString.remove("DFLT_SHP_DSTN_CD");
			return;
		}
		paramsString.put("DFLT_SHP_DSTN_CD",value);
	}


	public void setDSP_ITM_CLNT_TYP(String value){
		if(value==null) {
			paramsString.remove("DSP_ITM_CLNT_TYP");
			return;
		}
		paramsString.put("DSP_ITM_CLNT_TYP",value);
	}


	public void setCNSMT_ITM_CLNT_TYP(String value){
		if(value==null) {
			paramsString.remove("CNSMT_ITM_CLNT_TYP");
			return;
		}
		paramsString.put("CNSMT_ITM_CLNT_TYP",value);
	}


	public void setFRNT_WHRS_CD(String value){
		if(value==null) {
			paramsString.remove("FRNT_WHRS_CD");
			return;
		}
		paramsString.put("FRNT_WHRS_CD",value);
	}


	public void setBIL_DSTN_CD(String value){
		if(value==null) {
			paramsString.remove("BIL_DSTN_CD");
			return;
		}
		paramsString.put("BIL_DSTN_CD",value);
	}


	public void setCUS_PYMT_PRID(String value){
		if(value==null) {
			paramsString.remove("CUS_PYMT_PRID");
			return;
		}
		paramsString.put("CUS_PYMT_PRID",value);
	}


	public void setCUS_BNK_CD(String value){
		if(value==null) {
			paramsString.remove("CUS_BNK_CD");
			return;
		}
		paramsString.put("CUS_BNK_CD",value);
	}


	public void setCUS_BNK_ACC(String value){
		if(value==null) {
			paramsString.remove("CUS_BNK_ACC");
			return;
		}
		paramsString.put("CUS_BNK_ACC",value);
	}


	public void setCUS_ADD_PRIZ_TAX_CD(String value){
		if(value==null) {
			paramsString.remove("CUS_ADD_PRIZ_TAX_CD");
			return;
		}
		paramsString.put("CUS_ADD_PRIZ_TAX_CD",value);
	}


	public void setCUS_ADD_PRIZ_CAL_TYP(String value){
		if(value==null) {
			paramsString.remove("CUS_ADD_PRIZ_CAL_TYP");
			return;
		}
		paramsString.put("CUS_ADD_PRIZ_CAL_TYP",value);
	}


	public void setCUS_ADD_PRIZ_RGS_NO(String value){
		if(value==null) {
			paramsString.remove("CUS_ADD_PRIZ_RGS_NO");
			return;
		}
		paramsString.put("CUS_ADD_PRIZ_RGS_NO",value);
	}


	public void setCUS_MLT_CRCY(String value){
		if(value==null) {
			paramsString.remove("CUS_MLT_CRCY");
			return;
		}
		paramsString.put("CUS_MLT_CRCY",value);
	}


	public void setCUS_CRCY_CD(String value){
		if(value==null) {
			paramsString.remove("CUS_CRCY_CD");
			return;
		}
		paramsString.put("CUS_CRCY_CD",value);
	}


	public void setCUS_AR_AC(String value){
		if(value==null) {
			paramsString.remove("CUS_AR_AC");
			return;
		}
		paramsString.put("CUS_AR_AC",value);
	}


	public void setCUS_PRFT_AC(String value){
		if(value==null) {
			paramsString.remove("CUS_PRFT_AC");
			return;
		}
		paramsString.put("CUS_PRFT_AC",value);
	}


	public void setCUS_TAX_AC(String value){
		if(value==null) {
			paramsString.remove("CUS_TAX_AC");
			return;
		}
		paramsString.put("CUS_TAX_AC",value);
	}


	public void setSUP_DEBT_AC(String value){
		if(value==null) {
			paramsString.remove("SUP_DEBT_AC");
			return;
		}
		paramsString.put("SUP_DEBT_AC",value);
	}


	public void setSUP_PRPY_AC(String value){
		if(value==null) {
			paramsString.remove("SUP_PRPY_AC");
			return;
		}
		paramsString.put("SUP_PRPY_AC",value);
	}


	public void setSUP_PRPYFT_AC(String value){
		if(value==null) {
			paramsString.remove("SUP_PRPYFT_AC");
			return;
		}
		paramsString.put("SUP_PRPYFT_AC",value);
	}


	public void setSUP_PYMT_PRID(String value){
		if(value==null) {
			paramsString.remove("SUP_PYMT_PRID");
			return;
		}
		paramsString.put("SUP_PYMT_PRID",value);
	}


	public void setOVS_SUP_TYP(String value){
		if(value==null) {
			paramsString.remove("OVS_SUP_TYP");
			return;
		}
		paramsString.put("OVS_SUP_TYP",value);
	}


	public void setMAIN_STR_TYP(String value){
		if(value==null) {
			paramsString.remove("MAIN_STR_TYP");
			return;
		}
		paramsString.put("MAIN_STR_TYP",value);
	}


	public void setCONS_AC_TYP(String value){
		if(value==null) {
			paramsString.remove("CONS_AC_TYP");
			return;
		}
		paramsString.put("CONS_AC_TYP",value);
	}


	public void setDFLT_RCV_DSTN_CD(String value){
		if(value==null) {
			paramsString.remove("DFLT_RCV_DSTN_CD");
			return;
		}
		paramsString.put("DFLT_RCV_DSTN_CD",value);
	}


	public void setSITE_NM(String value){
		if(value==null) {
			paramsString.remove("SITE_NM");
			return;
		}
		paramsString.put("SITE_NM",value);
	}


	public void setSUP_ADD_PRIZ_TAX_CD(String value){
		if(value==null) {
			paramsString.remove("SUP_ADD_PRIZ_TAX_CD");
			return;
		}
		paramsString.put("SUP_ADD_PRIZ_TAX_CD",value);
	}


	public void setCUS_PRC_TAB_CD(String value){
		if(value==null) {
			paramsString.remove("CUS_PRC_TAB_CD");
			return;
		}
		paramsString.put("CUS_PRC_TAB_CD",value);
	}


	public void setRGS_DTTM(String value){
		if(value==null) {
			paramsString.remove("RGS_DTTM");
			return;
		}
		paramsString.put("RGS_DTTM",value);
	}


	public void setRGS_CHRG_CD(String value){
		if(value==null) {
			paramsString.remove("RGS_CHRG_CD");
			return;
		}
		paramsString.put("RGS_CHRG_CD",value);
	}


	public void setRGS_PGID(String value){
		if(value==null) {
			paramsString.remove("RGS_PGID");
			return;
		}
		paramsString.put("RGS_PGID",value);
	}


	public void setUPD_DTTM(String value){
		if(value==null) {
			paramsString.remove("UPD_DTTM");
			return;
		}
		paramsString.put("UPD_DTTM",value);
	}


	public void setUPD_CHRG_CD(String value){
		if(value==null) {
			paramsString.remove("UPD_CHRG_CD");
			return;
		}
		paramsString.put("UPD_CHRG_CD",value);
	}


	public void setUPD_PGID(String value){
		if(value==null) {
			paramsString.remove("UPD_PGID");
			return;
		}
		paramsString.put("UPD_PGID",value);
	}


	public void setFM_TYP(String value){
		if(value==null) {
			paramsString.remove("FM_TYP");
			return;
		}
		paramsString.put("FM_TYP",value);
	}


	public void setVDR_CD(String value){
		if(value==null) {
			paramsString.remove("VDR_CD");
			return;
		}
		paramsString.put("VDR_CD",value);
	}


	public void setAPL_BDT(String value){
		if(value==null) {
			paramsString.remove("APL_BDT");
			return;
		}
		paramsString.put("APL_BDT",value);
	}


	public void setOLD_APL_BDT(String value){
		if(value==null) {
			paramsString.remove("OLD_APL_BDT");
			return;
		}
		paramsString.put("OLD_APL_BDT",value);
	}


	public void setSYSDATE(String value){
		if(value==null) {
			paramsString.remove("SYSDATE");
			return;
		}
		paramsString.put("SYSDATE",value);
	}


	public void setNOT_FM_TYP(String value){
		if(value==null) {
			paramsString.remove("NOT_FM_TYP");
			return;
		}
		paramsString.put("NOT_FM_TYP",value);
	}


	public void setCASTOFF_FM_TYP(String value){
		if(value==null) {
			paramsString.remove("CASTOFF_FM_TYP");
			return;
		}
		paramsString.put("CASTOFF_FM_TYP",value);
	}


	public void setCTRL_DVSN_CD(String value){
		if(value==null) {
			paramsString.remove("CTRL_DVSN_CD");
			return;
		}
		paramsString.put("CTRL_DVSN_CD",value);
	}


	public void setFLT_CD(String value){
		if(value==null) {
			paramsString.remove("FLT_CD");
			return;
		}
		paramsString.put("FLT_CD",value);
	}


	public void setCD_TYP_CD(String value){
		if(value==null) {
			paramsString.remove("CD_TYP_CD");
			return;
		}
		paramsString.put("CD_TYP_CD",value);
	}


	public void setFM_TYP_9(String value){
		if(value==null) {
			paramsString.remove("FM_TYP_9");
			return;
		}
		paramsString.put("FM_TYP_9",value);
	}


	public void setFM_TYP_X(String value){
		if(value==null) {
			paramsString.remove("FM_TYP_X");
			return;
		}
		paramsString.put("FM_TYP_X",value);
	}


	public void setSYS_DATE(String value){
		if(value==null) {
			paramsString.remove("SYS_DATE");
			return;
		}
		paramsString.put("SYS_DATE",value);
	}


	public void setCD_VALUE(String value){
		if(value==null) {
			paramsString.remove("CD_VALUE");
			return;
		}
		paramsString.put("CD_VALUE",value);
	}


	public void setSLCP_CD(String value){
		if(value==null) {
			paramsString.remove("SLCP_CD");
			return;
		}
		paramsString.put("SLCP_CD",value);
	}


	public void setCHRG_TYP(String value){
		if(value==null) {
			paramsString.remove("CHRG_TYP");
			return;
		}
		paramsString.put("CHRG_TYP",value);
	}


	public void setCHRG_CD(String value){
		if(value==null) {
			paramsString.remove("CHRG_CD");
			return;
		}
		paramsString.put("CHRG_CD",value);
	}


	public void setFM_TYP_6(String value){
		if(value==null) {
			paramsString.remove("FM_TYP_6");
			return;
		}
		paramsString.put("FM_TYP_6",value);
	}


	public void setWHRS_CD(String value){
		if(value==null) {
			paramsString.remove("WHRS_CD");
			return;
		}
		paramsString.put("WHRS_CD",value);
	}


	public void setCUS_CRDT_LMT_AMT(BigDecimal value){
		if(value==null) {
			paramsBigDecimal.remove("CUS_CRDT_LMT_AMT");
			return;
		}
		paramsBigDecimal.put("CUS_CRDT_LMT_AMT",value);
	}


}
